// api.js
import request from '@/utils/request.js';

//Post的示例代码  也是登录
export const addFriend = (data) => {
    return request({
        url: '/users/addFriend',
		method: 'POST',
		data
    });
};

//getFriendList
export const getFriendList = () => {
    return request({
        url: '/users/getFriendList'
    });
};

//getFriendList1
export const getFriendListTrue = () => {
    return request({
        url: '/users/getFriendListTrue'
    });
};

//agreeFriends
export const agreeFriends = (data) => {
    return request({
        url: '/users/agreeFriends',
		method: 'POST',
		 data
    });
};